import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/element.js";
import "./directive/index";
//复制到剪切板
import VueClipboard from "vue-clipboard2";

Vue.use(VueClipboard);

import Avatar from "vue-avatar";

Vue.use(Avatar);

Vue.config.productionTip = false;

//阻止touchstart事件，防止代码编辑器页面卡死
import "default-passive-events";
//markdown
import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";

import dayjs from "dayjs";
//可以全局使用dayjs
Vue.prototype.dayjs = dayjs;

// use
Vue.use(mavonEditor);

// import VideoPlayer from "vue-video-player";
// require("video.js/dist/video-js.css");
// require("vue-video-player/src/custom-theme.css");
// Vue.use(VideoPlayer);

// import sdk from "./sdk";
// Vue.prototype.sdk = sdk;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");
